package com.example.miaopin.fragment;

import java.util.HashMap;

public class FragmentFactory {

	private static final int YaunFragment = 0;
	private static final int JiluFragment = 1;

	public static BaseFragment createFragment(int position) {
		BaseFragment fragment = null;
		switch (position) {
		case YaunFragment:
			fragment = new YaunFragment();
			break;
		case JiluFragment:
			fragment = new JiluFragment();
			break;
		}
		return fragment;
	}

}
